﻿import com.dmotiko.zonaoutlet.*
import com.dmotiko.general.*
import mx.transitions.*
import mx.transitions.easing.*

class ZOPromocionDownload
extends BaseClip {
	
	private var mcIcon:MovieClip;
	private var mcReflection:MovieClip;
	
	private function initClip():Void {
		mcIcon.initY = mcIcon._y;
		mcReflection.initY = mcReflection._y;
	}
	
	public function onRollOver():Void {
		registerTween( "iconY", new Tween( mcIcon, "_y", Elastic.easeOut, mcIcon._y, mcIcon.initY - 4, 1, true) );
		registerTween( "reflectionY", new Tween( mcReflection, "_y", Elastic.easeOut, mcReflection._y, mcReflection.initY + 4, 1, true) );
	}
	public function onRollOut():Void {
		registerTween( "iconY", new Tween( mcIcon, "_y", Regular.easeOut, mcIcon._y, mcIcon.initY, 0.5, true) );
		registerTween( "reflectionY", new Tween( mcReflection, "_y", Regular.easeOut, mcReflection._y, mcReflection.initY, 0.5, true) );
	}
	public function onRelease():Void {
		dispatchEvent( { type: BaseClipEvent.CHANGED, target: this } );
	}
}